<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<form action="http://127.0.0.1:8082/register" method="post"><br/>
			QQ:<input type="text" name="QQ" id="QQ" placeholder="QQ号" /><br/>
			CN:<input type="text" name="nickName" id="nickName" placeholder="昵称 " /><br/>
			密码:<input type="password" name="password" id="password" placeholder="可不填,默认123456"/><br/>
			性别:<input type="radio" name="sex" id="sex" value="0" />男
			<input type="radio" name="sex" id="sex" value="1" />女<br/>
			学院:<select>
				<option value ="数计">数计</option>
				<option value ="经管">经管</option>
				<option value ="新能源">新能源</option>
			</select><br/>
			专业:<input type="text" name="major" id="major" placeholder="专业" /><br/>
			部门:<input type="text" name="department" id="department" placeholder="部门意向" /><br/>
			爱好:<input type="text" name="hobbies" id="hobbies" placeholder="爱好" /><br/>
			愿景:<input type="text" name="expect" id="expect" placeholder="展望" /><br/>
			<input type="submit"/>
		</form>
		<br/>
		<h1>------------分割线------------</h1>
		<h1>登录</h1>
		<form action="http://127.0.0.1:8082/login" method="post">
			账号：<input type="text" name="QQ" id="QQ" />
			密码：<input type="password" name="password" id="password" />
			<input type="submit"/>
			<br/>
			<button id="btn" type="button">ajax</button>
		</form>
	</body>
	<script type="text/javascript">
		const btn = document.querySelector('#btn')
		const test = function(){
			const xhr = new XMLHttpRequest()
			xhr.onload = function(){
				console.log(xhr.responseText)
			}
			xhr.open('get','http://127.0.0.1:8082/getAllUserInfo')
			xhr.send()
		}
		btn.onclick = test
	</script>
</html>
